<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改驱动电机信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-motorInformation-edit" th:object="${tbPartMotorInformation}">
            <input name="driveId" th:field="*{driveId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">电机型号编号：</label>
                <div class="col-sm-8">
                    <input name="motorModelId" th:field="*{motorModelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车辆VIN：</label>
                <div class="col-sm-8">
                    <input name="carId" th:field="*{carId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机位置：</label>
                <div class="col-sm-8">
                    <input name="motorPosition" th:field="*{motorPosition}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出厂日期：</label>
                <div class="col-sm-8">

                        <input name="productionDate" th:field="*{productionDate}" class="form-control" type="text">


            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "parts/motorInformation";
        $("#form-motorInformation-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-motorInformation-edit').serialize());
            }
        }
    </script>
</body>
</html>
